//
//  YZTopScrollView.h
//  tasker
//
//  Created by yangming on 2017/5/31.
//  Copyright © 2017年 BT. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol YZTopScrollViewDelegate <NSObject>

@optional

- (void)chooseChannelWithIndex:(NSInteger)index;

@end


@interface YZTopScrollView : UIView

- (instancetype)initWithFrame:(CGRect)frame;

// 選中item
- (void)selectChannelButtonWithIndex:(NSInteger)index;

// 下劃線滑動
- (void)indicatorViewDidScroll:(CGFloat)translationX;

@property (nonatomic, strong) NSArray *channelNameArray;

@property (nonatomic, weak) UIScrollView *scrollView;

@property (nonatomic, weak) id<YZTopScrollViewDelegate> delegate;

@end
